/*获取日期*/
function getTime() {
    var date = new Date();
    var year = date.getFullYear();
    var month = date.getMonth() + 1;
    month = (month < 10 ? "0" + month : month);
    var day = date.getDate();
    var hour = date.getHours();
    hour = (hour < 10 ? "0" + hour : hour)
    var minutes = date.getMinutes();
    minutes = (minutes < 10 ? "0" + minutes : minutes);
    var seconds = date.getSeconds();
    seconds = (seconds < 10 ? "0" + seconds : seconds);
    var ymd = year + "-" + month + "-" + day;
    var time = hour + ":" + minutes + ":" + seconds;
    /* nowDate = ymd + " " + time;*/
    nowDate = time;
    $('#time').html(nowDate);
}

setInterval("getTime()", 1000)




